package com.wwtech.epp.ui.activity.work.contract;

import android.content.Intent;

import com.wwtech.epp.db.Friend;
import com.wwtech.epp.entity.ProjectTask;
import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author hzp
 * @Package The contract for NewProjectActivity
 * @Description: $description
 * @date 2017/09/01 22:09:47
 */
public interface NewProjectContract {
    interface View extends BaseView<NewProjectContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void setProjectTaskData(ArrayList<ProjectTask> list);

        void setPersonData(ArrayList<Friend> managerList, ArrayList<Friend> partList);

        void onProjectManagerBack(Friend friend);

        void onProjectTaskManagerBaack();
    }

    interface NewProjectContractPresenter extends BasePresenter {
        void init();
        void addProjectTask();
        void onActivityResult(int requestCode, int resultCode, Intent data);

        void packData(Map map);

        void newProject(Map map);
    }
}